﻿using YiSha.Entity.SystemManage;

namespace YiSha.Entity.OrganizationManage;

[Table("SysNews")]
public class NewsEntity : BaseAreaEntity
{
    /// <summary>
    /// 文章标题
    /// </summary>
    /// <returns></returns>
    public string NewsTitle { get; set; }
    /// <summary>
    /// 文章内容
    /// </summary>
    /// <returns></returns>
    public string NewsContent { get; set; }
    /// <summary>
    /// 文章标签
    /// </summary>
    public string NewsTag { get; set; }
    /// <summary>
    /// 缩略图
    /// </summary>
    /// <returns></returns>
    public string ThumbImage { get; set; }
    /// <summary>
    /// 作者
    /// </summary>
    /// <returns></returns>
    public string NewsAuthor { get; set; }
    /// <summary>
    /// 排序
    /// </summary>
    /// <returns></returns>
    public int? NewsSort { get; set; }
    /// <summary>
    /// 发布时间
    /// </summary>
    /// <returns></returns>
    [JsonConverter(typeof(DateTimeJsonConverter))]
    public DateTime? NewsDate { get; set; }
    /// <summary>
    /// 文章类别
    /// </summary>
    /// <returns></returns>
    public int? NewsType { get; set; }
    /// <summary>
    /// 阅读量
    /// </summary>
    /// <returns></returns>
    public int? ViewTimes { get; set; }

}